import request from '~/utils/resquest'

// 查询资产首页当前租户配置的工区列表
export const getAssetHomeWorkAreaList = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getWorkAreaList',
    method: 'get',
    params
  })

// 查询租户专题图的资产组件图标(按钮操作栏)
export const getAssetHomeOptionsBar = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getAssetModelIconList',
    method: 'get',
    params
  })

// 查询资产首页地图所需加载的租户配置的专题图数据
export const getAssetHomeMapSpecialTenant = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getSpecialTenantByCode',
    method: 'get',
    params
  })

// 搜索资产组件id查询数据（勤电）
export const getAssetHomeBaseDataByModuleIdStationGisApi = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/stationGisApi/getAssetBaseStationData',
    method: 'post',
    data: params
  })

// 搜索资产组件id查询数据
export const getAssetHomeBaseDataByModuleId = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getAssetBaseData',
    method: 'post',
    data: params
  })

// 搜索资产组件id查询数据
export const getAssetHomeBaseDataByModuleIdWhole = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getAssetBaseData1',
    method: 'post',
    data: params
  })

// 根据设施名称关键字模糊搜索匹配的配电设施列表
export const getAssetHomePowerDistributionFacilities = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/searchAssetBaseData',
    method: 'post',
    params
  })

// 根据设施名称关键字模糊搜索匹配的配电设施列表（勤电）
export const getAssetHomePowerSearchAssetBaseStationStationGisApi = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/stationGisApi/searchAssetBaseStation',
    method: 'post',
    params
  })

// 根据设施名称关键字模糊搜索匹配的配电设施列表
export const getAssetHomePowerSearchAssetBaseStation = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/searchAssetBaseStation',
    method: 'post',
    params
  })

// 查询当前坐标点有无重叠的点
export const getAssetHomeOverlapPointList = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getAssetBasePoint',
    method: 'post',
    params
  })

// 查询点击坐标点的信息弹框用到的数据(勤电)
export const getAssetHomePopoverInfoDataByIdStationGisApi = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/stationGisApi/getAssetInfoData',
    method: 'get',
    params
  })

export const getAssetHomePopoverInfoDataById = <T>(params: T) =>
  request({
    url: '/api/gxsaas-assets/gisApi/getAssetInfoData',
    method: 'get',
    params
  })
